Repository navigation
Fix RLinf playback checkpoint selectors and update the VLA post-training guide - #9155
Conversation
Remove the personal checkpoint links paragraph and fix the issues found while verifying the documented workflow end to end: - Move the assemble_trocar ``hf download`` after the Step 2 dependency pins into a new subsection and run it with ``uv run --no-sync``; with the lockfile's huggingface-hub 1.x and typer 0.27 the ``hf`` command exits non-zero after downloading. Raise the hub pin floor to 0.34, the first release that ships the ``hf`` CLI. - Add ``Environments/Grid`` to the local mirror subtree list since the default ground plane is loaded from there. - Mark flash-attn as optional for GR00T N1.7, which falls back to SDPA attention with a warning when it is missing. - Add ``--no-sync`` to the ``uv run isaaclab`` commands in Key Files.
``isaaclab play --rl_library rlinf --checkpoint latest|best`` looked up run manifests with ``env.eval.init_params.id`` while training records ``env.train.init_params.id``, so recipes with a separate evaluation task id never found their checkpoints. Resolve the selector against the training id, matching the train entrypoint. Resolve ``--config_path`` to an absolute directory before handing it to Hydra, whose ``initialize_config_dir()`` rejects relative paths. Extend the launch test into a train/play round trip with a relative config directory: training writes the run manifest and playback resolves ``latest`` through it although the eval task id differs.
[Medium impact] The PR appears safe to merge. SummaryFixes RLinf checkpoint selection and relative config directories.
No actionable issues found. This review checked source code; it did not run tests or GPU workflows. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
Config[Config directory] --> Absolute[Resolve absolute path]
Absolute --> Hydra[Compose recipe]
Hydra --> Train[Training task ID]
Train --> Manifest[Write run manifest]
Hydra --> Play[Playback selector]
Manifest --> Match[Match training task and config name]
Play --> Match
Match --> Weights[Load saved weights]
Reviews (1) · Last reviewed commit: "Fix RLinf playback checkpoint selectors ..." · Reviewed by Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Implementation (1), Style consistency (1). Other reviewed categories look good.
- PR description: The title matches the five-file diff; describe validation as mocked CLI composition with synthetic weights, record the actual pytest deselection command, and limit the hf compatibility claim to the documented >=0.34,<1.0 range.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: The N1.7 command block still executes flash-attn installation without CUDA 13 nvcc; move that command into a separate optional step so the documented SDPA path remains usable.
- Style consistency: The new launch helper omits backend and return annotations required by contribution guidance; annotate the module parameter and composed configuration result.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 2 inline findings.
Automated review; human maintainers own approval decisions.
| uv pip install --no-deps \ | ||
| "git+https://github.com/NVIDIA/Isaac-GR00T.git@1a1837f20538b7d7e21f977a11a5aee14f99803c" \ | ||
| "transformers==4.57.3" "tokenizers>=0.22,<0.23" "huggingface-hub>=0.34,<1.0" | ||
| # Optional: building flash-attn requires a CUDA 13 nvcc. Without it, N1.7 logs a warning |
There was a problem hiding this comment.
🟡 Warning · Implementation — Separate the optional flash-attn install
The N1.7 command block still installs flash-attn when followed as written, failing without CUDA 13 nvcc despite the stated SDPA fallback. Put the install in a clearly optional step.
| backend.run(args) | ||
| GlobalHydra.instance().clear() | ||
|
|
||
| def launch(backend, checkpoint: str): |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Annotate the new launch helper
The helper omits its backend parameter and return annotations, contrary to the signature-typing rule. Annotate the module argument and composed configuration return value.
|
run-ci |
|
should we cherry pick this to release? |
Yes, I have updated the description. |
Description
Follow-up to #7776. Verifying the RLinf VLA post-training guide end to end turned up two defects in the
isaaclab_rlRLinf entry points and several problems in the guide itself. This PR fixes them and removes the remaining references to personal Hugging Face checkpoints.Entry point fixes (
isaaclab_rl)isaaclab play --rl_library rlinf --checkpoint latest|bestnever found a checkpoint. Playback looked up run manifests withenv.eval.init_params.id, while training recordsenv.train.init_params.id. All three shipped recipes use a distinct...-Evalid for evaluation, so the lookup always failed withNo compatible manifested run with a checkpoint was found. Playback now resolves the selector against the training id, matchingtrain_rlinf.py; an explicit--taskstill takes precedence.--config_pathfailed withinitialize_config_dir() requires an absolute config_dir as input. The path is now resolved to an absolute directory before Hydra is initialized.latestthrough it although the recipe's eval task id differs from its training id. Reverting either fix, or making training record the eval id, turns the test red with the original errors.Documentation (
rlinf_vla_posttraining.rst)assemble_trocarhf downloadfrom the prerequisites into a new "Assemble Trocar checkpoint" subsection after the Step 2 dependency pins, and run it withuv run --no-sync. With the lockfile'shuggingface-hub1.x andtyper0.27,hfdownloads the files but exits non-zero with aclick.exceptions.Exittraceback; anyhuggingface-hub< 1.0 works. The Step 2 floor is raised to>=0.34, the first release that ships thehfCLI.Environments/Gridto the local-mirror subtree list; the defaultGroundPlaneCfgUSD is loaded from there.nvccto match the lockfile's torch).--no-syncto theuv run isaaclab ...commands in "Key Files" so they do not re-sync the environment.No linked issue.
Type of change
Screenshots
Not applicable (CLI and documentation changes).
Validation
uv run python -m pytest source/isaaclab_rl/test/test_entrypoints.pypasses (the one skrl parser test was deselected locally becauseskrlis not installed in my environment).ValueError; reverting the config-path fix fails it with the Hydrainitialize_config_dir()error; making training record the eval id fails it with the manifestValueError.pre-commiton the changed files, the changelog gate (tools/changelog/cli.py check), and a Sphinx render of the guide pass.Release backport
mainChecklist
Docker and GPU tests run on demand. Push the commits you want tested, then comment
run-cion the pull request, orrun-ci ovstageto include kitless OVStage rendering tests for that run. Subsequent pushes and plainrun-cicomments do not run OVStage tests unless you commentrun-ci ovstageagain.pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there